package org.jsola.hr.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jsola.core.entity.BaseDeleteDO;
import org.jsola.core.entity.Key;

import javax.persistence.Table;

/**
 * 人员分管用工单位
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Table(name = "hr_user_role_company")
@Key(UUID = true)
public class UserRoleCompanyDO extends BaseDeleteDO<String> {

    private static final long serialVersionUID = 1L;

    /**
     * 员工ID
     */
    private String userId;
    /**
     * 角色id
     */
    private Long roleId;
    /**
     * 用工单位分组id
     */
    private String childCompanyId;
    /**
     * 用工单位id
     */
    private String employerId;
    /**
     * 是否是全部用工单位(1:是,0:否)
     */
    private Boolean isAllEmployer;
    /**
     * 是否是全部用工单位分组;1:是,0:否
     */
    private Boolean isAllChildCompany;



}

